<script setup>
import { watch,ref } from 'vue';
import { useGlobalStore } from '@/stores/global.js'

const globalStore = useGlobalStore()


watch(() => globalStore.userInfo , (newUserInfo) => {
		if (!newUserInfo) {
			uni.reLaunch({ url: '/pages/login' })
		}
	},
	{
		immediate:true
	}
)
</script>

<style lang="scss">
@import "uview-plus/index.scss";

page,
view,
text,
button,
input,
image {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
</style>